﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Usuario.aspx.cs" Inherits="TVH.Cadastro.Usuario" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" runat="server">
    <asp:HiddenField ID="hdnID" runat="server" />
    <h1>
        Cadastro de Usuário</h1>
    <asp:Label ID="lblMensagem" runat="server"></asp:Label>
    <fieldset>
        <legend>Dados do Usuário</legend>
        <div class="field">
            <label>
                Login:</label>
            <asp:TextBox runat="server" ID="txtLogin" MaxLength="30" CssClass="input-size-350" />
            <asp:RequiredFieldValidator ID="txtLoginRequiredFieldValidator" runat="server"
                ControlToValidate="txtLogin" ErrorMessage="*" SetFocusOnError="True" CssClass="erro"></asp:RequiredFieldValidator>
        </div>
        <div class="field">
            <label>
                Nome:</label>
            <asp:TextBox runat="server" ID="txtNome" MaxLength="30" CssClass="input-size-350" />
            <asp:RequiredFieldValidator ID="txtNomeRequiredFieldValidator" runat="server"
                ControlToValidate="txtNome" ErrorMessage="*" SetFocusOnError="True" CssClass="erro"></asp:RequiredFieldValidator>
        </div>
        <div class="field">
            <label>
                Senha:</label>
            <asp:TextBox runat="server" ID="txtSenha" MaxLength="30" CssClass="input-size-350" />
            <asp:RequiredFieldValidator ID="txtSenhaRequiredFieldValidator" runat="server"
                ControlToValidate="txtSenha" ErrorMessage="*" SetFocusOnError="True" CssClass="erro"></asp:RequiredFieldValidator>
        </div>
        <div class="field">
            <label>
                Prédio:</label>
            <asp:DropDownList runat="server" ID="ddlPredio" CssClass="size-350" AppendDataBoundItems="true">
                <asp:ListItem Text="Selecione" Value="0" />
            </asp:DropDownList>
            <asp:RequiredFieldValidator ID="ddlPredioRequiredFieldValidator" runat="server"
                ControlToValidate="ddlPredio" InitialValue="0" ErrorMessage="*" SetFocusOnError="True"
                CssClass="erro"></asp:RequiredFieldValidator>
        </div>
        <div class="field">
            <label>
                Setor:</label>
            <asp:DropDownList runat="server" ID="ddlSetor" CssClass="size-350" AppendDataBoundItems="true">
                <asp:ListItem Text="Selecione" Value="0" />
            </asp:DropDownList>
            <asp:RequiredFieldValidator ID="ddlSetorRequiredFieldValidator" runat="server"
                ControlToValidate="ddlSetor" InitialValue="0" ErrorMessage="*" SetFocusOnError="True"
                CssClass="erro"></asp:RequiredFieldValidator>
        </div>
    </fieldset>
    <div class="actions">
        <a href="ListaUsuario.aspx" class="button botao-cinza">Voltar</a>
        <asp:Button ID="btnSalvar" Text="Salvar" CssClass="botao-azul" runat="server" OnClick="btnSalvar_Click" />
    </div>
    <script type="text/javascript">
        $(document).ready(function () {
            
        });
    </script>
</asp:Content>
